package com.zzzzzz.content.picitem;

import java.io.IOException;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.zzzzzz.core.exception.NoSuchModelException;

public interface PicItemService {
	@Transactional
	public Long add(Long userId, PicForm picForm) throws IOException;
	
	@Transactional
	public void del(Long id, Long userId) throws NoSuchModelException;
	
	@Transactional
	public Long edit(Long userId, PicItemForm picItemForm);
	
	public void plusLooks(Long id);

	public void plusReplies(Long id, Long userId);

	public void editLikes(Long id, Integer likesPlus);
	
	public List<PicItemListView> findByGtId(Long id);
	
	public List<PicItemListView> findByPicTextId(Long picTextId, int start, int offset);
	
	public void setPicItemProperty(PicItemView picItemView);
	
	public long findByPicTextIdCount(Long picTextId);
	
	public PicItem findById(Long id);
	
	public PicItemView findViewById(Long id);
	
	public void editSeqNb(String ids, Long userId);
}